package com.cf.mvp.mvp;

/**
 * @param <P> 契约Presenter
 * @author yangji
 */
public abstract class BaseModel<P extends IPresenter> implements IModel<P> {

    private P presenter;

    @Override
    public void bindPresenter(P presenter) {
        this.presenter = presenter;
    }

    protected P getPresenter() {
        return presenter;
    }
}
